A little faster version of putBsonDocument