SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '17b054225bd9458ce670abbfb76ef0d66d07c34c8e4c3b96aea566af711db671' 
  AND token = 'ZBxBFrt9ncGEUGW1gcCa6LL9MFQG5i2vKfTFLvRZ9wY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00028

JSON explain

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