Cache repositories in memory