Optimized chunk loader

Fixes #1486 
Wow. Git hates me.