RMS - Leave open or close after each operation?

The app seems to struggle when doing RMS operations until I eventually get an OutOfMemoryError.

Does anyone have tips for RMS use and keeping the heap usage down? At the moment, I open and close the RMS for each operation. I am considering keeping it open all the time, but just wondered if anyone knew the extent of the effect this might have on my precious heap memory??