Cache enum's value array for a speed increase