Saving pump energy using air valves