Perhaps we need a function that does this calculation quickly, since it's used again just a couple lines down.
Example: return c[chunkIndex(oc)].