Concurrent generation

This fixes several performance issues throughout the chunk generation process.