updated processBatchStrategy to correctly call, process and cache
batches of media resources.