simplified cache save/encryption code
removed bad comment