Adding cache to the resolve