Added possibility to read environments from cache.