get same case-insensitive semantics as vanilla with good speed