India and Pakistan held secret talks for more than three years, reached an accord on the thorny Kashmir issue and had almost unveiled it in 2007 before domestic turmoil in Pakistan derailed it, former Pakistani foreign minister Khursheed Mehmood Kasuri has revealed.