Optimized MimeType handling