Add the cache mechanism, and allow the scanner to search kvs from both the mob directories and archive directories.