Small performance improvement to fix issue when having large number of open tabs and splitting the window