Optimising code: Multiplying a list of matrices by a matrix

A while ago I asked a similar question, which you might find a useful read: