using redis hash as a thread-safe method to prevent loaders racing