More compact cache/sess routines.