I've been kicking around the idea of rewriting my php torrent editors, which are currently used on the EAD primary server for download-time torrent editing, as a C++ Apache module. The hard part is probably going to be figuring out the proper Apache API tie-ins and possibly getting the module compiled.
The module's editing will be basic at first and will only be used with sites that need the basic editing (announce and announce-list editing). Once I figure out MySQL for C++ and HTTP downloading, I will work on having it support the more advanced features of my current torrent editor scripts such as the http source database tie-ins.
I'm honestly not sure how performance of the system will change if I use an Apache module instead of PHP.