switching from thread level token caching to process level token caching
adding logging
Merge pull request #302 from raghavgautam/test-fix

switching from thread level token caching to process level token caching