Cache data to speed up loading