Optimize "Spherize" distort

The original implementation was naive; with a few simple adjustments
(lookup tables for the original coordinate conversion, precalculating
some constants) speed was improved ~15-25% when compiled.