How about extracting "env['rack.request.cookie_hash'][key]" into a local variable? that would allow to make a callback one-liner again...