It only has to open the one of the smaller files per search term.
RAM disk... wow...
There are a lot of sites on the server and wow,, that is an idea. that would be ... fast.
I can write a function to cache like you recommend, i think that is my best option.
But, do you have some ideas about a ram disk?