Avoid use of unshift in demuxStream