Keycloak - write to and read custom entries from Infinispan

Is there a way to write to and read custom entries from Infinispan in a custom Keycloak SPI?

So, for an example, if you’d want to track a number of failed login attempts for a given user, could you store a simple count-by-username map within Infinispan?

I’d like to achieve this with Infinispan in order to cache the value across the whole Keycloak cluster, not a single node.

Is this possible to do with Infinispan and Keycloak?