SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '42e7a5b64e2717ed0e9154b057ea36940f58219fa3b9a606c342522e4f1013cd' 
  AND token = 'ddyyc5G65t3XCRNLOc/sP34+aE4p3lKihV3NWxPlj9E=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00025

JSON explain

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