Caching of collection classes in order to gain performance