More often than not, I find that if I take my guitar off the wall and its a bit out of tune, I can tune it, play a few seconds and find that it's still slightly off. But if I play for a few minutes and re-tune as needed, those changes are much more stable. Is there something about the strings or neck getting warm from playing or the strings getting ever so slightly stretched that makes tuning more stable the longer you play?