Optimize add and removes in cache dependencies for methos : get and
contains