It sounds like you're putting both "a" and "b" under different keys in the same node. Have you tried putting "a" and "b" in different nodes?
Indeed. eviction is performed on a node basis, so all attributes attached to a node will be seen as one and evicted together. As said, the only solution is to place the attributes within different nodes.