begin[smt]...end
It was being stored in the environment before. This was very hackish, and it was producing a series of unnecessary environment updates, and thread local caches invalidations. The new test tests/lean/run/heap.lean is 5x-6x faster after this commit.