use global keyword with _cache_lock