commit last fixes and optimisations to the cache manager. The performance of cache hits has increased between 20 and 50% !!