SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '505aa5c441a5748cedd795fdb06ebc51ad0c8487237b8b704004b4c504f37747' 
  AND token = 'HDCTATAnbWRpFBHqfrkPjl1FngSvxxFqMV0BqQY9w/c=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00036

JSON explain

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