1st hand. If you're going to 3-bet like that with AK preflop, you have to be willing to play a big pot if you flop TPTK, and with villian being short, your preflop and flop play is automatic.

2nd hand. I play it the same.