Not sure on the distance you are talking about or the method of isolating if more than arms reach away , otherwise not a bad idea as long as the heat...
I am thinking of putting my pool light transformer in a pvc junction box/electrical box with conduit from the db to the box and conduit from the box...
What does one do if you are requested to install an extra socket outlet in a bedroom and the client cannot find their coc, which happens very often ?...