Custom cache functions  

As of #212