Suggest to use `SettingsCache.getSettings`, which returns the cached copy of the entire database. By doing this we can avoid the nested code below.