move preparation of playlists to a background thread