Cache data into localStorage with expires option