don't store private public-share-key in session

proposed solution for #12405 

cc @DeepDiver1975 @LukasReschke @MorrisJobke what do you think?
damn, I shouldn't do to much stuff in parallel. You are right the methods are only used internally, don't know why they were public maybe in the past they were also used from outside... Whatever... Updated.