Yes! You can build middleware that intercepts large responses and handles them automatically. Here's a clean approach:
// ResponseSizeMiddleware.cs
public class ResponseSizeMiddleware
{
private readonly RequestDelegate _next;
private readonly IAmazonS3 _s3Client;