915330 - Fix performance degradation in repository creation as repository count increases

https://bugzilla.redhat.com/show_bug.cgi?id=915330