Interestingly I have been experiencing some cache difficulties with CS5 as well. I have found a work around to the RAM preview not responding and locking up and eventually crashing the app. As annoying as this may seem to do it works every-time.
Create a new comp and make a solid or a text layer and RAM preview on that and then return to your heavy comp and RAM preview now and it works. It needs to re-cache the comp for previewing.
I found this work-around while I was trying to copy and paste text from a word file into an AE comp. I would copy it from word and then it wouldn’t paste in my heavy comp. But i created a new comp and pasted it in there and it worked. So I then went back to my heavy comp after the new comp and the pasting worked.
So there seems to be some weird cache problems with CS5, I have played around with the menu options to try and figure it out with disk cache and multiprocessing but so far no luck.
If someone figures the fix for this, please let me know, otherwise I will keep relying on this annoying work-around.