Reduced complexity of #matches?