Integrate shasum check in decoder