ca_is_enabled can be called multiple times within a request, for example when deleting services associated with a host. This value is not likely to change within any given request.
commit 32c64a78cef499c05e4ffa71d033692571297dca cached the value but never really used it effectively.
Properly cache the value and return it to save on queries.
https://github.com/freeipa/freeipa/pull/5702
master:
ipa-4-9:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)