Speed improvement to getting model name