Iron phosphate device for battery