Replaced VLA with transient ByteArray.