Added byte buffer utility to postpone fwrite