add & reuse output byte buffer for records
remove old unused import
change buffer size