Implement inverse and cache methods.