Pre-compile one type lookup to further optimize the variant class