Moonlighting activity of the epigenetic machinery restrains infection