Reorder check for crypto implementation flag.