SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '1e8d57ab421b1ed9a90beb501d3512219a550ce11e6e256d9e4e75dec04c9edc' 
  AND token = 'O5ftEBnojx5CXKcRNPh2ODONERc6voBt7E3WQVoNClY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00050

JSON explain

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