Why not do a special versions for larger forums, which via a CP interface, allows you to build a special file for members once and have that access via the forum.
Ok you'd need to build it to include new members (wouldn't have to, new ones never really matter =]), yet it'd make things a lot faster. Dealing with thousands of files dynamically is obviouslly less appealing =).
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.