Another speedup - added runtime caching of +->< command repetitions