Allow override of layout and cacheLayout from env variables