Is it okay to knock someone unconscious and then wake them up again?
But the question remains, if it is not _necessary_ to the AI's proper functioning, would it be okay to turn it off? A human parallel to that is more like sedating your workers when they're not needed.