Which is the fastest way to write in a string builder and then convert to memory stream or is there any other way to write faster