remove buffer indirection

small optimization