moved SETTINGS to a Cache class attribute to avoid usage of global.