Improve performance on iOS