load offline data in background thread

offline data loading and sync_required check both takes some time, so
moved to background thread.