Extract the name once rather than many times.