Improved server side cache mechanism. Proper clearing of cache when things change