Drivers of bacterial maintenance and minimal energy requirements