precomputed contains search