Avoid unnecessary enumeration and lookup.