Retain cursor positions

You can improve performance by retaining cursor positions.