What if we just move the directory check/create to _get_cache_dir() on 161 and leave init empty?