Optimized Process Control Saves Energy and Improves Treatment Performance