Enable Unlimited for all package quota

Enable unlimited for all package quota value + some minor corrections
and code optimizations, expected without visible effect.