Improvements to text syncing performance