personally, I wouldn't say I completely memorised my essay, but I have generic structure for an essay which I repeatedly practice. In essence, I remember the key ideas, but adapt to the question whilst writing my essay. I do this multiple times until I am proficient with my structure.