Local asymptotics of the cycle maximum of a heavy-tailed random walk