I have a habit of suggesting things in a manner which makes them sound like a quick 5 minutes fix when they clearly take a lot more effort. So I\'ll apologise now
Not a coder (for this type of stuff anyway) but it sounds like you could have some of the commonly used stuff preloaded into memory (user configurable) and impliment a swap disk (internal or storage card depending on reliability etc.).
That way you get the better performance, and the swap disk algorithms can take care of what to keep in memory and bin it if more free memory is needed.
Not unlike what is done on \"real\" PCs.
Things start slowing down if you start running lots of apps etc. at once, but presumably, not much slower than they would have been in the first place.
Like I said only a five minute fix