better mem warning logic, md5 hashing disk cache keys