Formatting
Protect allocations in the session-cache callback