[PATCH] keys: Fix overwrite of key expiration on instantiation