cleaning up batch reactor to manipulate buffers in batched resource chunks

Makes inpro run 8x faster for sqlite and the output db is 8x smaller.  Yay!