Given this specific constraint, how would you rewrite this module to handle increased throughput?
Implement batch_requests(requests, batch_size) so each request is processed at most once, first-seen order is preserved, and every output batch contains no more than batch_size requests. Return an array of batches containing the unique requests. The input is an array of integers and a positive integer batch size.
def batch_requests(requests, batch_size):