fix: skip unnecessary derived effect in earlier batch (#18525)