firmware loader: introduce cache_firmware and uncache_firmware