Move some data to __local variable (1%-3% gain).
Fix a bug in shared autotune.