change save_as_typedbytes file-splitting logic