[511765] Close parent module environments, use HashMap for caching
2 files changed