mesh key generation tuning