Cache enabled flag in the closure