My headcanon is that, when she was Celestia's student, Sunset had to baby-sit Li'l Twiley at least once when Cadence was off doing something royal. To date, Sunset hasn't made the connection between her friend the Princess and that pesky but cute filly with a book fixation she looked after that night so long ago.