isam-d optimizing: merging input data in the same go