Avoid storing modified certificate in template redis value