Add cmd check caching.