Single definition of cached_hashes.db in BookStatusDialog. Moved hash_cache to in memory for better performance.