add settings optimization
now all settings in global cache