Modified Cache Interface and Implementation. Update from the smart svn repository (new middleware)