mod Cache class to add base64 encode/decode for storage