Reusing wastewater for a more resilient agriculture