STS-3411: improved performance of type hierarchy lookup by caching directory content for speedup