pub fn clear_cache<Tree: MerkleTreeTrait>(cache_dir: &Path) -> Result<()>