Implemented token cache in OAuth wrap flow.
Bug fix in cache