Feature #4977: Cache file path to avoid string join
Feature #4977: Remove warning message of removeFile