Add core patch to improve installation time.

#5054