Thanks a lot for all your input. I knew I'd get some advice here sooner or later ;-).
If I find the time I'll look into adapting the code - problem will be that it won't be compatible for future releases (will have to re-apply the patch for every release).
Otherwise I'll try the statistics-agent idea. I just need to prepare the relevant statistics in this case.

thanks again