def METHOD_NAME(monkey_arg: str) -> Path:
    """
    Create and cache secure log file
    :param monkey_arg: Argument for the agent. Possible `agent` or `dropper`
    :return: Path of the secure log file
    """
    mode = "agent" if monkey_arg == MONKEY_ARG else "dropper"
    timestamp = time.strftime("%Y-%m-%d-%H-%M-%S", time.gmtime())
    prefix = f"infection-monkey-{mode}-{timestamp}-"
    suffix = ".log"
    handle, monkey_log_path = tempfile.mkstemp(suffix=suffix, prefix=prefix)
    os.close(handle)
    return Path(monkey_log_path)