[MKL-DNN] Improve performance of hashing Key genration using TID
Created by: jczaja
As disscussed in #18758 Key generation using TID is quite slow and cost upto ~5 FPS on mobilenet v1 model. This issue is to try to speed it up :
- Limit TID usage if possible
- cache , std::hasher or std::stringstream if possible