Improving performance using Batch APIs