Make caching aliasMap optional to reduce memory usage

Disabling this will allow contexts with a large number of Resources to use less memory and gain performance. Smaller sites will perform better with this enabled.