optimization: don't do zeroing of whole output buffer