It's cumbersome, but I think you can use something like Steripen for that (UV).
That's ridiculously energy-intensive and you'd probably have to re-mineralise it before storage or consumption to be on the safe side. Cooking might actually be the worst issue here, low-mineralisation cooking water would leech minerals out, leading to lower nutrient intake (unless yo keep the cooking water for drinking).
That's exactly the issue I'm pointing out in using distilled water from cooking, you will lose those minerals in the food to cooking water unless you drink it, so a normally proper died would not be anymore.