Improve the memory cleaner.