So the idea of your code is to isolate the variables in each time-step and every k1 steps “rewire” the last k2 states, right? I like it, I should’ve found it out myself to be fair.
And I agree that as long as k2 - k1 isn’t too big the overhead should be negligible.
Thanks for your help @albanD!