Make digest handling more optimizer save by using a union