Store key validity time in the storage layer.