session: Reorder code a bit
session: Assert that uuid4 key is unused