Move checksumming logic to a central location