Use new helper to get batch ids (with caching) in message storing middleware.