Use compression for intermediate raster files

Use compression in order to avoid very IO-intensive processing of raster
files. This should fix #1492 

@javisantana can you please review?