Second level cache compatibility with associations as keys