Relations: small optimizations