small refactoring
added dynamic taskSubStatus retrieval with memory cache