Make sure to write cache info when saving