How to optimize the energy system for safe and improved performance