Optimize condition/action evaluation