Server: option to set the maximum cached layers in environment variable MAX_CACHE_LAYERS