optimization: remove repeated stringify