Added more control over whether cliques are found in memory or on disk