FIX: integer overflow at ~> 2<<31
ENH: stream checks on reads
REP: sqlite perf improvements