Store transaction input/outputs as a compressed string when there are
more than 500 to avoid Datastore size limits.