SpongeBob SquarePants: Season 7, Episode 6
Plankton explores SpongeBob's brain, in an attempt to steal the formula.