On the optimal hedge ratio in index-based longevity risk hedging