Performance issue with "Set Collision Enabled" node

I see, I would’ve solved it in a similar way. Thanks for your reply!