Use hashmap instead of weak hash map for the cache.