Same here, but I didn't memorize the proofs, I tried to internalize their logic, so I could reconstruct them on demand by just thinking systematically. It did work for me pretty well on my real analysis final exam IIRC (27 years later).