I guess it doesn't matter for this in-memory backend, but is this really the best way to compare buffers for equality?