Not a fan of the buffer here.  We just fixed a few leaks when we were using in memory buffers.  Can this be accomplished without the buffer?