[SPARK-3135] Created ByteArrayChunkOutputStream and used it to avoid mem copy in TorrentBroadcast.