Check for OOM and assert(cache_filename).