performance improvement for text analytics