finally convert lastcache to new method