Cleanup useless memorization.