My tools is using mlock to lock x into ram. It seems to work. U should try it. And also hawaii is a troll.
Personally, I didn't even know so much useful-only-at-boot crap sat in the ram indefinitely. If these things sit in ram after boot, can't a script be written to simply get rid of all the stuff like that that wastes memory space?