This is the best approach. Do your work and leave. Don't give ears to side talks. Some of those power hungry people would come and tell you what you are missing by not joining their faction. I just tell them I am okay with the things I am already benefitting.
Seriously from my experience with working for so many years, I've come to find out that it's the best way for you to do your work in any kind of organisation and avoid any kind of politics that is being played there. Go home and rest and still come back tomorrow and do your work. You are going to last in that company for a long time.