Moved the constant time (time.Now) outside of the for loop which was
causing unintended entries to be removed from cache