Identify filename up front rather than lazily