Cache last memory allocation in unique_table