Please see this link[1], Apple explains exactly how keys are stored in their datacenters (Hint: it is not in clear text). They use HSM's which destroy the user's key after 10 failed attempts.
[1]: https://www.apple.com/business/docs/iOS_Security_Guide.pdf
So basically, they could be in clear text, it's pretty much the same.