Update caching method (still wip)