I wonder if upgrading building code to require a secondary water storage tank that's continually flushed is more viable.
That's a pretty good idea! Something like a water heater but just a storage tank. It might be worth putting some sort of instant, automatic valve system on it so if pipes somewhere do break the tank disconnects itself from the plumbing.
-Blast