Implement workflow instance cache.