I think yes, put it in getInstance() and call it only the first time this method is called. I think this is what you want.
OR
If you're using some framework and that framework is sending you an event when the app is initialized/ready, then you can also hook there and do it there. But in that case it may start executing even before the customer has called getInstance(). It's up to you to decide if that's OK or not.
The latter is better IMHO.