AMF - minor optimization to read directly from byte array