HPCC-11713 Change environment access to go through the cache

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>