OPTIMIZING CNC MACHINING FOR ENERGY STORAGE