Performance enhancement:  Replaced Array.Copy with Buffer.BlockCopy when copying byte arrays.