SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '0244f56288075053e59548f60e017acaabc9ad850b98dd85a834b741833e23d7' 
  AND token = 'UICvKUWi1nsLN1/U/AeX0G+ExcOMLB79epbqBOTapyI=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00036

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}