You need to place your on-demand heater as close as possible to the demand source. This will reduce the heat waste and leave a smaller volume of cold water to purge from the supply line when you need to use the appliance next time.