I have used CaOH to help harden the water and prevent foaming, but it is a weak electrolyte and only a small amount will dissolve in water. I am interested in mg.