minor performance tweak in the cascade code