If you do many measurements or decodes on the same waveform we'll find the average, base, top, level crossings, etc. many times. There should be some way to de-duplicate that effort so the same measurement on a given waveform is only done once.
Just need to figure out all of the threading/locking complexities around it...