It's true that the charges were somewhat cynical in the sense that Socrates could have been charged with the same crimes 10 or 20 years earlier - it wasn't his beliefs that changed, it was the political circumstances. That being said, Plato's Apology makes it clear how seriously Socrates took this charge - proving his own piety was incredibly important.