Speedup collapsing: use state for it.