Unify common/shared code in order to try new LWS/GWS enumeration schemes. See: 24e0565.
raw-sha1-opencl: Ensure we don't overtax key index.