Store the heap on the interpreter state