store internal callback of Closure in constant