faster migration by avoiding to query the db for local thumbnails