Fixes #159. Remove external cache locking.
Fixes #158. Use namespace for cache logging.