Discharge valves in reverse osmosis unit