Updates to add caching for settings vars.