Optimized chunk loader

Fixes #1486 
Actually, turning everything into an `int` would be a better option, since the `Range` is then used for composing `int`s