Use a lookup table instead of cp