Cache inverse

Completed functions for cache inverse operation