Only calc digest if it's not already set.