[perf fix] Do _LeakTick() before if and case, not after