remove unneeded caching of caids, use an array for pidcache instead of std::map ...