Save and restore progress for textMatching