Improvements to lastname search performance