Document factory used to retrieve cached documents.