Pools class is not thread safe

In order not to add 'synchronized' for every method I have made typePools field local for all threads.