Slightly optimized output buffering