I'm matching some in memory lists entities with a .contains (subselect) query to filter out old from new users.
Checking for performance problems i saw this:

The oldList mostly has around 1000 users in them, while the new list varies from 100 to 500. Is there a way to optimize this query?