Updates hashtable to better support memory management.