There's nothing worse than that feeling of "this essay is so bad, I'm gonna fail" halfway through an in-class essay.
Your best bet is to go in with a structure in mind. Maybe an argument that you know you'll be able to adapt to any question. Don't memorise a whole essay, but decide on a general...