Doesn't it ez to keep the phosphorus from leaching just put some strong cations like Ca or Mg to the soil, so they will form new compounds, yes they may become insoluble but still available for the microbes and roots around the rhizosphere
When you apply those ions in excess there's the risk of making other ions less available for the plant, like copper or iron. That's why organic matter or bone meal are better in my opinion, because the phosporous it's slowly released in the soil and you'll never have a shortage. The same if your soil has lots of microorganisms, as they die or kill one another they release phosphorous that can be used by the plant, more microorganisms = more phosphorous