Improved file loading speed, fixed GC crashes