LPS-39260 Optimize MimeResponseImpl