Use temp model file (to avoid conflicts)
Add cache to speed up ui