[MRM-1612] reduce number of security checks for a configuration change to avoid blocking when the number of repositories gets large