Optimised index calculation

I have taken out the calculation (multiplication and addition) of the index of mRawData out of the loop and instead index directly into mRawData