Optimal energy conversion through performing compressed air systems