You should reuse this buffer, just do `out.Reset()` at the end of each iteration.