Export cipher tag setter and add writer for streams