Smart proxying for reducing network energy consumption