Utils: small optimization