Simple locking for persistent cache implemented