I'm confused. Here you say that you think it's an action that's causing the problem
But here you seem to suggest that you think it's a condition that causes the problem.
To me, it seems like the problem is about a condition rather than an action. Even if it's an action that causes the lag, the mystery is - as you said earlier - why certain conditions are allowing that action to trigger at all.
Do you get the slow down if you replace this