fix sqlite expression too large error

it was raising when running storage performance test on sqlite, not
adding test case covering in the main test suite for now since it would
noticably slow it down