Memozied parsefile so subsequent calls will be fast