Speed up playlist truncation for large playlists