Caching the token and retrieving it from cache.