Performance Optimization With Energy Packets