Avoid unnecessary calculation
Small optimizations for tempo analyse