saving and loading cache works