Avoid global buffers in IO