Making it slightly more efficient

Removed one string creation from the core loop and also fixed an issue where the same hash would occasionally be tried by two different threads.