Maybe you can try to increase the batch size. Are there other reason to process 30 in a batch ? Also, maybe you can wrap the process function inside a dataloader for better batch handling.
process