Check if node is discrete when set and hold that value instead of making the full check on every intent state. Big reduction in ColorModule method invocations.