SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '040a7c828ecc9718a9cfb9a4fbea0a554d39315dd18a71173e6b7e30f4db717a' 
  AND token = 'gxShAvMDBi/XWaIB87mCiJP5JyOAb1uaq+3Xsi8n95w=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00026

JSON explain

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