refactory BytesUtils to avoid creating repeated buffer for every line in bulkload