Switch position of your arm after playing the first octave. Alternatively, you can play finger positions in order 1-8-1-8-8-1-4-1, to avoid the radical arm movement by playing the octaves down.