Gravar-mail: Averaged Optimization and Finite-Time Thermodynamics