Fix MimeType Detection and make it memoize 50