apply matteo85 0001-optimize-for-speed.patch