Save some build time by updating repositories cache only once