Privacy Panel new pull request

This is a new pull request. We had to remove the old one due to big problems with git and some Schroedinger patches....
the gaia build system _also_ does this kind of optimizations, so it might be redundant.
anyway, I'm fine with it if we have make test-perf results showing that it helps, otherwise we shouldn't add the complexity