Is it necessary to retain the prelims optional for Mains?
Not necessary. But it is advisable to stick with the prelims optional. To be able to do preliminary well, one has to do a thorough study of the subject matter. This comes handy if one opts for the same optional in the mains. If different optionals are taken it would lead to tragic waste of time.