An Alternative to Double Transposing Data?

I have a protocol that works fine but it includes two transpose components to allow me to get my data how I want it.  This works fine for small input files but I do have cases where the input files can be very large (10,000+ rows).  In these cases the protocol can take hours to run due to the amount of data being transposed.

The protocol basically calculates the difference between 5 sequential lines and repeats for the entire range of data. 

ie (A1-A2)+(A2-A3)+(A3-A4)+(A4-A5)

Transposing the input file and using an ithproperty(#i) Loop is an easy enough solution but creates a bottleneck with larger files.

I'm sure there will be an alternative or just a better way to script this.  Any input would be very much appreciated.

Input file

12345
23.49032.90542.54744.32344.886
23.55732.99642.79744.64145.087
23.61733.08342.82544.85745.349
23.68633.19743.41144.93145.206
23.74733.23143.55544.98145.199
23.80033.32743.66845.05345.204
23.92233.51843.88945.19945.258
24.00633.53144.00145.26045.292
24.16933.76644.09645.31545.340
24.21333.88744.28945.39345.443

PLP Comm.png