1. A method comprising: for a first indexing expression that includes a plurality of indices, determining that the first indexing expression does not include a pair of adjacent indices that reference particular elements of data, the determining that the first indexing expression does not include the pair of adjacent indices that reference the particular elements of the data being performed by one or more processors; determining whether the first indexing expression includes a pair of adjacent scalar indices after the determining that the first indexing expression does not include the pair of adjacent indices that reference the particular elements of the data, the determining whether the first indexing expression includes the pair of adjacent scalar indices being performed by the one or more processors; identifying a particular pair of adjacent indices, of the plurality of indices, when it is determined that the first indexing expression does not include the pair of scalar adjacent indices, the identifying the particular pair of adjacent indices being performed by the one or more, processors; determining an optimum quantity of indices associated with performing a parallel processing operation; generating based on the optimum quantity of indices, a second indexing expression that includes one or more indices referencing one or more elements referenced by the particular pair of adjacent indices, the generating the second indexing expression comprising performing a scalar folding on the particular pair of adjacent indices, and the generating the second indexing expression being performed by the one or more processors; and performing the parallel processing operation based on the second indexing expression, the performing the parallel processing operation being performed by the one or more processors.