Optimize with @CompileStatic