Speed up the report links function by only bringing in the necessary constants
Speed up the menu by only going to the database once
Move the purge audit trail code to GetConfig.php so it is only run at login, not every refresh