This blog post indicates that it's possible to re-configure the locations of the $data/system/caches and $server/temp directories in order to optimise a TeamCity installation.
Admittedly the post is a bit outdated; but I've done plenty of searching around and tweaking and can find no direct references on how to do this.
Any help much appreciated.