performance considerations

This is the very beginnings of work to optimize performance of the loader.