Auto clean memory