added the initialization of the Cache Hashmap to avoid nullpointer exceptions