Initialize the instance with a different keyfile instance.
When passing a keyfile instance, the constructor will not try to read from filename.