I have also cached byte to types so we don't have to iterate over all the time.