Optimize what we're checking a bit.