Ensure i and checksum are updated simultaneously in store