Run caching before using the cached vars.