Speed up getting dynamic strings in AddUISettingsToDom