I replaced the .Any with a .Contains (thanks to @jon_x on jabbr) and it works fine. I also replaced the .Table.Where(..) with .Fetch(..), this allowed me to change .Distinct().ToList().Count to .Distinct().Count(), which has given another small perf boost