only use cache if env var is set