Better caching for bpdw_is_wiki_doc()