Optimise CascadingActions for the most likely case

Description

Noticed a minor performance issue with CascadingActions; it also seems an unusual high CPU consumer, we should better investigate why this is the case, as the code looks quite trivial.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Trivial
Configure