Moved inner decode loop into DecoderStack::decode_data