Optimize performances for big enums.