Using a tankless water heater to improve industrial efficiency