Fixes #138. Yet another concurrency issue when reading from caches