Massive work with branch naming algorithm, this will drastically speed
lookup.