added code to avoid v8 deoptimization on big switch statements
split big switch statements into 128 size chunks