Convert stream buffering path to use unique_ptrs