Keys generation in separate module