Allow multiple batch_ids when storing messages