On-the-Fly Frac Water Treatment