Create the replacement items one time in the main process.
Create the replacement items one time in the main process.

And IPC them across, rather than having each webContents do the work.

CharlieHess/electron-text-substitutions