Reduce 1 Query on All Wiki Pages
Before a wiki page even initializes vBulletin, there are between 2 and 3 queries to the database that vBulletin's debug mode doesn't know about because it wasn't started yet. So every wiki page load's query count is +2 for regular URLs, and +3 for custom URLs.
If we adopt a similar system to vBSEO, we can remove 1 of those queries. Currently the first query looks up the values of several settings needed to determine if this is a valid wiki request. These values can be dynamically saved in a config file much like in vBSEO and read from the file on each request. We can improve on vBSEO's design by using a text file instead of XML, in order to reduce the amount of processing that needs to be done on the file.
Additionally, in the case where the script detects that we are directly requesting 'wiki_index.php' exactly, we can defer all of those queries (and the config parsing) until vBulletin has started.