     /** read position **/
     private var _read_position:Number;
     /** chunk size to avoid blocking **/
-    private static const CHUNK_SIZE:uint = 4096;
+    private static const CHUNK_SIZE:uint = 2048;
     /** is bytearray full ? **/
     private var _data_complete:Boolean;
 

      }
    }

    /** decrypt a small chunk of packets each time to avoid blocking **/
    private function _decryptData(e:Event):void {
      _data.position = _read_position;
      if(_data.bytesAvailable) {
        var dumpByteArray:ByteArray = new ByteArray();

        _timer.stop();
        if (_data_complete) {
          Log.debug("AES:data+decrypt completed, callback");
          // callback
          _decrypteddata.position=0;
          _callback(_decrypteddata);
