Refactored datastream content digest to utility method