Generalizing exact variant lookup