embed_cache separated from embed handler