Cache: make the scope of the mutex bigger