My suspicion is that he’s going there to kill Cersei*, the same way he killed the Targaryen King (that being how he earned the nickname of Kingslayer). It’s too big a parallel, really, since Jaime was head of the Kingsguard, and killed the King (violating his sworn oath no less) because the King was going to use…