SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '0017a30031a80d8e8b811d790148538642546338479e29f09cb2c911893fb051' 
  AND token = 'NvgTLYVH+QPLOkCUJzDPU9SYpNcPE/vcTpxmeiBIQ78=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00023

JSON explain

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