Better handling of large documents in BulkInsert and Smuggler