Application modification for reducing energy-consumption