I really doubt if most bureaucrats would WANT anyone who had 25 middle names to write them all out.
Most government data is computerized these days and there is only going to be a set amount of space for characters for middle names, and anything over that amount will just get cut off. :)