Wouldn't surprise me if the memory wipes don't turn out to be 100% effective either, and she's been accumulating subconscious knowledge the whole time.
She has the memories of a 10 year old, but her brain structure is fully developed. It's not unreasonable for her to reason her way to leveraging the only thing she knows Sayaka cares about