in reply to Is there a way to reduce Data::Dumper's output size?
May I cordially suggest that you, instead, use one of several alternatives which are expressly designed to store data structures:
You will find, in CPAN, multiple robust implementations, ready to go.