optimizing for battery health