This method is triggered by a signal which is connected to the bootstrap's
shutdown sequence.
If the reflection data has previously been loaded from the runtime cache,
saving it is omitted as changes are not expected.
In Production context the whole cache is written at once and then frozen in
order to be consistent. Frozen cache data in Development is only produced for
classes contained in frozen packages.