Refactor POST /items to handle batches more efficiently