” pouring chemicals overboard, yelling Allah Akbar!”
If the membranes will filter out dissolved salt they’ll filter out other things too.
I am pretty sure the water is treated after going through the membrane.
Anyway, when we are discussing millions of cubic feet of water you would need a lot of chemicals.