It wasn’t a secret per say, but Draco didn’t want to say anything until Ron finally got it together and spoke to Harry. He had made progress with the spells, he needed to perfect them on his own time.