make the cache threadsafe using synchronizedMap - fixes #1
Merge pull request #4 from ornicar/threadSafeCache

make the cache threadsafe using synchronizedMap - fixes #1