Implement 1KiB output buffer granularity (Issue #385)