DEV: nullify cachedCookFunction to prevent retains (PR #14737)

GitHub