Optimize MatchAll out from And criteria.