Updated Cache to check timestamp for validity