performance improvement: Sinks in conditionally-called functions must only be triggered once