cache only in non-embedded context