With this change, the cache will be aware of which default database is being used. That will remove the need for the cache parameter 'allowed_references' and thus make the cache easier to configure and manage.