Bootstrap optimization

This pull request aims at optimizing the bootstrapping phase by loading less code and using fewer filesystem calls.