When inheriting from memory one loses the ability to differentiate accesses. Memory itself only provides the set_operation_callback and uses it for all kinds of accesses.