Enable unlimited for all package quota value

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