Make the heap prune tokens when required