Adding changed way to cache in Mongodb