improved performance of excludes (RhBug:1109554)