performance enhancements to resolveUser [Close #570]