Optimized hashing service.