Moved Tika MIME-detection to a separate thread.