Tests passing, but taking very long time (key generation)