update luajit & add caches