Treatment of sodium and potassium salts