Improve performance of get name