Katy Perry knows precisely what she’s doing.