fix to refresh logic to ensure use of same lock as get method to prevent two threads from trying to prime a key at the same time
removing debugging statements