Improved memory management of ram entries