Improve surface creation speed.  Fix gzip return.