Given a large password file, build a program to read the required password(s) while minimizing memory usage. How would you optimize the space so that only the needed content is loaded? Given a mathematical expression as a string, write code to evaluate it using a depth-first-search (DFS) approach.