Is it worth optimizing for the common case here and trying to do a case-sensitive lookup first ?