Yes, there is a way, and I got it to work with cache (not PHP though), but there are two problems: it's only colors/font face (to make it faster), and it's MUCH slower, so it's better to make it without cache.
I know a better way (cache for each style), but it makes your forum weight * number of schemes.
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.