Use boost scoped arrays as temporary buffers.