This setup would be inefficient due to the equilibrium effect: as soon as heating of the tank and water begins, the heat gained is lost to the environment and this continues until the water in the tank reaches ambient temperature.