Is there really a point in `_has_db_cached_dimensions`? Can't you just rely on `_dimensions_cache`?