I don't think we need to include the `cachedDocs[type]` here.