Electron taking too much memory and processing