Performance improvements + random fixes

These commits massively improve performance with the Package Checker.

Also added some other misc improvements.

Tested and working.