Or better yet, instead of Installing a motorized valve, install a heat trap on the hot water supply out of the water heater. Basically a upside down p-trap made of the water piping that you have. I would pipe back down and then back up to the fixtures
My post about the motorized valve was
The valve must be a one way backflow preventer on the closed loop system I showed. It prevents reverse flow from the WH through the pump and back into the system.
I asked about the motorized valve as I am trying to design a gravity fed system for myself with the WH on a timer and that valve preventing circulation while the WH is either totally or partially shutdown.
I apologize to the board...