I use to study my pieces first only with the sheet music and without piano. I see its structure and fix the music in my mind untill I`m able to write it without mistakes. Only after this I go to the piano and practice bar to bar or phrase to phrase. first hands separated then hands together. I only go to the next bar when I`m able to play the anterior without mistakes. And each time I repeat all the bars I have studied.Doing so, when I am playing I know what I go to play some bars after the bar I`m playing. And this not only prevents mistakes when performing in public but also doesnt let me forget a piece I have studied.I do know that this is a slow process of learn a piece. But it`s the only way I know to dont forget a piece, even months or years later. I learned this method from Lechtiwsky.