Use a cached database statement for the playlist indexing.