The `attachment_cache` is instantiated at the top of this method on line 163 but it doesn't look like it's needed anymore.