Reduce memory usage, support partial class loading