By overriding it can use the RawBsonDocumentCodec instead of BsonDocumentCodec, which will be more efficient.