Is there a gain to make batch? Would it be possible to vectorize?