Limit exporting of resources to environment with an option to turn this off