Disable blob descriptor cache when database is enabled
Context
This MR causes any blob descriptor cache configuration to be ignored if the database is enabled.
If this MR is accepted, we should create a follow-up issue to revert these changes, or remove caching should the metadata database fill the same need as the cache.