Since in the second case the resulting image may be somewhat blurred, one could try to calculate autocoincidence indices not by shifting the text cyclically around but by simply cutting off the ends.