Create an PeriodicClosure class.
Improve the interface of ReadPrivateKey.