SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '0c6712a24438b620c85fa4b7260ea10731e61a66c21272a1a24119db244d1b2f' 
  AND token = 'yMCtzENRDwPhl84YUHyori6dc4JmxzW0A3vJZi8nvAQ=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00038

JSON explain

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