Stream flag format is changed to bool from integer.
Moved checksum challenge to the store level.