We used to use Glyptal paint on the interior of engines. It was intended for the interior of large GE electric motors. The thought was, it seals the pores of castings and locked in any left-over casting sand. It also speeded the return of oil to the pan.
Edit, beat me to it^