DM-1210: Invert buffering for czar in row-based result handling

Code review for DM-1210
It is probably more efficient to pass `shared_ptr` by const reference.