rework credcache for multiple repo support