Feature/5011 use less memory when putting docs on couch 3