Exclude empty regions in Sage code
Clean up temporary structure files
Optimize by caching scoring parameters