Lookup speed optimization