Moving key creation part before starting zero state join threads to avoid timeout.