Reduce unnecessary memory copies by ByteVector