Add build option to cache input files in-memory for faster startup