Improve caching: same git repo/ref and different path = single cached copy.