Now use ReadArray<byte> and WriteArray<byte> instead of iterating