Have an ace up one’s sleeve

To have something that you can use to gain an advantage (in a card game the ace is often the most valuable card and a cheater could have an ace up his or her sleeve to use against an opponent).

I have an ace up my sleeve which should help me when I meet my boss tomorrow.