Optimize the CatalogMap get function. Stupid implementations before.