Improve performance by precompiling script