update ensure cache function