Charles Leclerc attempted a last shot at beating Mercedes by handing over DRS to Sergio Perez to gain a 5s gap.