While the energy used couldn't be recovered, desalinating water for later would be a good use for California, given how the climate is going to go. Not that desalination plants exist for free.