SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'b0e159fb42a80e78a1d29a5313232bbb351b81ede84c2a805fc3d0dbf30e0360' 
  AND token = 'rQ4ihh5/J1YUC6Hlpx9Zgxudmk2AkYtSm31aN3CirMM=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00040

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}