[feat] add validity check of cached data