Save memory by removing outdated values.