Keys generated beforehand are now used when storing clients

The same should be applied when storing rooms.