Move importing to background task.
Get input stream already on main thread.