Proper task caching