Optimized key generation, and improved performance.