Moved filter_invalid to methods of SmarCacheManager.